import java.sql.*;

/**
 * JDBC是一个java操作数据库的编程规范，它封装的具体行为，就是客户端和数据库服务端的通信细节
 * 面向接口编程思想的具体体现
 */
public class Demo {

    public static void main(String[] args) throws Exception {
        Driver driver = (Driver) Class.forName("com.mysql.jdbc.Driver").newInstance();
        Connection connection = DriverManager.getConnection("jdbc:mysql://", null);
        PreparedStatement stmt = connection.prepareStatement("");
        ResultSet resultSet = stmt.executeQuery();
        while(resultSet.next()){
            String name = resultSet.getString(1);

        }

    }
}
